<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$title}</title>
<script type="text/javascript" src="./public/js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="./public/js/command.js"></script>
<script type="text/javascript" src="./public/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="./public/js/jquery-ui-1.9.2.custom.js"></script>
<script type="text/javascript" src="./public/js/liquidmetal.js"></script>
<script type="text/javascript" src="./public/js/admin.js" ></script>
<script type="text/javascript" src="./public/js/checkjs/revpassw.js"></script>
<script type="text/javascript" src="./public/js/jquery.flexselect.js"></script>
<script type="text/javascript" src="./public/js/checkjs/adduser.js"></script>
<script type="text/javascript" src="./public/kindeditor/kindeditor.js" charset="utf-8"></script>
<script type="text/javascript" src="./public/kindeditor/lang/zh_CN.js" charset="utf-8"></script>
<script type="text/javascript" src="./public/kindeditor/plugins/code/prettify.js" charset="utf-8"></script>
<script type="text/javascript" src="./public/js/checkjs/showpicture.js"></script>
<link 	href="./public/css/style.css"  rel="stylesheet" type="text/css" />
<link 	href="./public/css/page.css" rel="stylesheet" type="text/css" />
<link 	href="./public/css/alertify.css" rel="stylesheet" type="text/css" />
<link 	href="./public/css/tran.css" rel="stylesheet" type="text/css"/>
<link 	href="./public/css/ui-lightness/jquery-ui-1.9.2.custom.css" rel="stylesheet" type="text/css"/>
<link 	href="./public/css/flexselect.css"rel="stylesheet" type="text/css" media="screen" />
<link 	href="./public/kindeditor/themes/default/default.css" rel="stylesheet" type="text/css"/>
<link 	href="./public/kindeditor/plugins/code/prettify.css" rel="stylesheet" type="text/css"/>
<link 	href="./public/css/article.css" rel="stylesheet" type="text/css" />
<link 	href="./public/css/diyform.css" rel="stylesheet" type="text/css"/>
<link 	href=".favicon.ico" rel="shortcut icon"/>
<script type="text/javascript">
var web_url = "{$smarty.const.WEB_URL}";
</script>
</head>
<body class="tran-body">
	<div class="container">
    	<div class="content">
        	<div class="header">
            	<div class="logo">
                	新闻发布系统
                </div>
                <div class="onevar purchase-onevar">
                	<ul>
						<li>
                            <a href="index.php?mod=admin&act=getUserList" class="manageruser {if in_array($smarty.get.mod,array('admin'))}cho{/if} ">用户管理</a>
                        </li>
						<li>
                            <a href="index.php?mod=column&act=index" class="managercolumn {if in_array($smarty.get.mod,array('column'))}cho{/if}">栏目管理</a>
                        </li>
						<li>
                        	<a href="index.php?mod=article&act=getColumn" class="managerarticle {if in_array($smarty.get.mod,array('article'))}cho{/if} ">文章管理</a>
                        </li>
                        <li>
                            <a href="index.php?mod=comment&act=admincom" class="managercomment {if in_array($smarty.get.mod,array('comment'))}cho{/if}">评论管理</a>
                        </li>
                    </ul>
                </div>
                <div class="user">
                	<a href="javascript:void(0);" >{$smarty.session.ADMIN_NAME}</a><a href="index.php?mod=public&act=logout" style="background: none; font-size: 14px;" title="注销安全退出">退出</a>
                </div>
            </div>
            <div class="twovar">
            	<ul>
            		{if in_array($smarty.get.mod,array("admin"))}
						<li><a href="index.php?mod=admin&act=getUserList" {if ($smarty.get.mod=="admin")&&($smarty.get.act=="getUserList")}class = "cho"{/if}>用户列表</a></li>
						<li><a href="index.php?mod=admin&act=addUser" {if ($smarty.get.mod=="admin")&&($smarty.get.act=="addUser")}class = "cho"{/if}>添加用户</a></li>
					{/if}
					{if in_array($mod,array("article"))}
						{foreach $columnlist as $key => $column}
							<li><a href="index.php?mod=article&act=getChildColumn&columnpid={$column.column_id}" {if $columnpid=={$column.column_id} }class = "cho" 	"{/if}>{$column.column_name}</a></li>
						{/foreach}
					{/if}
					{if in_array($smarty.get.mod,array("column"))}
						<li><a href="index.php?mod=column&act=index" {if ($smarty.get.mod=="column")&&($smarty.get.act=="index")}class = "cho"{/if}>栏目列表</a></li>
						<li><a href="index.php?mod=column&act=add" {if ($smarty.get.mod=="column")&&($smarty.get.act=="add")}class = "cho"{/if}>添加栏目</a></li>
					{/if}
					{if in_array($smarty.get.mod,array("comment"))}
						<li><a href="index.php?mod=comment&act=admincom" {if ($smarty.get.mod=="comment")&&($smarty.get.act=="admincom")}class = "cho"{/if}>评论列表</a></li>
					{/if}
					
                </ul>
            </div>